package com.googlecode.mgwt.examples.showcase.server.jdo;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class WaterCounter {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key ;
	@Persistent
	private Integer clockInternalID;
	@Persistent
	private Integer clockCityID;
	@Persistent
	private Integer buildingID;
	@Persistent
	private Integer entryID;
	@Persistent
	private Integer floorID;
	@Persistent
	private String name;
	@Persistent(mappedBy = "counter")
	private List<WaterCount> countsList;
	
	
	public Key getKey() {
		return key;
	}
}

	

	